#ifndef IPCHANGEDIALOG_H
#define IPCHANGEDIALOG_H


#include <QDialog>

#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QGridLayout>
#include <QRegExp>
#include <QRegExpValidator>

#include <QString>

class IPChangeDialog: public QDialog
{
    Q_OBJECT
    QHBoxLayout* mainLayout;
    QVBoxLayout* toolsLayout;
    QGridLayout* ipLayout;
    QLineEdit* ipLineEdit;
    QLineEdit* maskLineEdit;
    QLabel* ipLabel;
    QLabel* maskLabel;
    QPushButton* okButton;
    QPushButton* cancleButton;
public:
    IPChangeDialog(QWidget* parent = 0);
    QString getIP() const{
        return ipLineEdit->text();
    }
    QString getMask() const{
        return maskLineEdit->text();
    }
private slots:
    void ipLineEditTextChanged();
};

#endif // IPCHANGEDIALOG_H
